package com.fengli.task.uitl;

import com.fengli.task.uitl.enumType.Code;

/**
 * @Description: 用与封装各个接口的返回
 * @Author: fengli
 * @Date 4/19/19 9:21 AM
 */
public class Result {
    //结果信息
    private String msg;
    //结果代码(如200,404,500)
    private Code code;
    //封住结果
    private Object data;

    public Result(String msg, Code code, Object data) {
        this.msg = msg;
        this.code = code;
        this.data = data;
    }
    public Result(){}

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Code getCode() {
        return code;
    }

    public void setCode(Code code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
